package com.ebt.m.policy;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.widget.FrameLayout;

import com.ebt.m.R;
import com.ebt.m.activity.BaseToolBarActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author Damon.Han
 */
public class ActSearchProductsMore extends BaseToolBarActivity {
    @BindView(R.id.product_root)
    FrameLayout frameLayout;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_online_policy_search_more_product);
        ButterKnife.bind(this);

    }

    @Override
    protected void init() {
        super.init();
        String wd = (String) getIntent().getSerializableExtra("data");
        if (wd == null) {
            return;
        }
        setTitle("更多产品");
        FrgChooseByProducts frgChooseByProposals = FrgChooseByProducts.newInstance(wd);
        FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
        fragmentTransaction.replace(R.id.product_root, frgChooseByProposals);
        fragmentTransaction.commit();

    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

}
